<?php
include_once 'module/controls.php';
include_once 'model/hotline/process.php';
$c = new controls();
$hotline = new hotline();

$fillHotLine = $hotline->FillAll();
?>
<div id="content">
    <div class="content_block">
        <h2 class="jquery_tab_title"><?php echo $phrase["manager_category"] ?></h2>
        <form method="post" action="<?= $url["home"] ?>/menu/hotline-process" enctype="multipart/form-data">
            <?php if(mysql_num_rows($fillHotLine) > 0) { ?>
                <?php $fillOne = mysql_fetch_array($fillHotLine); ?>
                <p>
                    <?php echo $c->get_textHidden("id", "{$fillOne["hotline_id"]}") ?>
                    <?php echo $c->get_label($phrase["hotline_create"]) ?>
                    <?php echo $c->get_text("hotline_phone", "{$fillOne["hotline_phone"]}") ?>
                </p>
            <?php } else { ?>
                <p>
                    <?php echo $c->get_label($phrase["hotline_create"]) ?>
                    <?php echo $c->get_text("hotline_phone") ?>
                </p>
            <?php } ?>
            
            <?php if(mysql_num_rows($fillHotLine) > 0) { ?>
                <p>
                    <?php echo $c->get_button("update", $phrase["update"]) ?>
                </p>
            <?php } else { ?>
            <p>
                <?php echo $c->get_button("accept", $phrase["accept"]) ?>
            </p>
            <?php } ?>
        </form>
    </div>
</div>
<script>

</script>